package com.sright.bcard.content.share.service;

import com.sright.bcard.content.share.request.CountButtonParam;
import com.sright.common.response.SrightResponse;

import javax.servlet.http.HttpServletRequest;

/**
 * 点击数据service
 */
public interface DataService {

    /**
     * 统计分享次数
     * @param cardId
     * @param userId
     * @return
     */
    SrightResponse recordShareNum(Long cardId,Long userId);

    /**
     * 企业名片详情按钮点击统计（一次访问只计一次）
     * @param cardId
     * @param userId
     * @return
     */
    SrightResponse countClickOne(Long cardId,Long userId);

    /**
     * 点击事件埋点
     * @param cardId
     * @param type
     * @param memberId
     * @return
     */
    SrightResponse countClick(Long cardId, Integer type, Long memberId);

    /**
     * 更新最后登录时间
     * @param userId
     * @return
     */
    SrightResponse updateLoginTime(Long userId);

    SrightResponse countButton(CountButtonParam param,HttpServletRequest request);

    SrightResponse dataResult(Long userId);
}
